
import 'package:flutter/material.dart';

///
/// demo_stateless.dart
/// [RenderObjectWidget]
/// [RenderObjectElement]
/// [RenderObject]
///
/// [Text]
/// [Image]
///
/// [Widget]
/// [MaterialApp]
///
/// [State]
///
/// [WidgetsBindingObserver]
///

class Text0 extends StatelessWidget {
  const Text0(this.data, {
    required Key key,
    required this.textAlign,
    required this.textDirection,
  }) : assert(data != null), textSpan = null, super(key: key);

  final String data;
  final TextAlign textAlign;
  final TextDirection textDirection;
  final TextSpan? textSpan;
  @override
  Widget build(BuildContext context) {
    Widget result = RichText(text: textSpan ?? const TextSpan(text: '你好', style: TextStyle(fontSize: 20.0)),);
    return result;
  }
}




